package com.example.demo.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import com.example.demo.pojo.User;


public interface UserMapper {
	
	User selectUserByName(String username);
	int insertUser(User user);
	int deleteUser(int id);
	int updateUser(User user);
	List<User> selectAllUser();
	User selectById(int id);
	
	//批量插入用户
	int addUser(List<User> userList);
	int addUser2(List<User> userList);
	
	//批量更新操作
	int updateUserTwo(List<User> userList);
}
